<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>createvillage.jsp</title>
<link href="./css/xtab.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<html:form action="/village.do?method=createvillage">

		<table cellspacing="0">

			<tr>
				<td class="tableTitle">
					角色名
				</td>
				<td>
					<html:text property="village.villageName"></html:text>
				</td>
			</tr>
			<tr>
				<td class="tableTitle">
					小区电话
				</td>
				<td>
					<html:text property="village.telephone"></html:text>
					 
				</td>
			</tr>
			<tr>
				<td class="tableTitle">
					描述
				</td>
				<td>
					<html:text property="village.remark"></html:text>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="button" id="create" class="button" value="保 存">
				</td>
			</tr>
			 
		</table>
	
	</html:form>
	<script>
		$("#create").click(function(){
			var f=document.forms[0];
			f.action="village.do?method=createVillage";
			f.submit();
		}); 
	</script>
</body>
</html:html>
